import request from "@/utils/request";

/**查询积分商品列表 */
export function integralGoodList(params) {
  return request({
    url: "/admin/integralGood/list",
    method: "get",
    params,
  });
}

/**获取积分商品详细信息 */
export function integralGoodId(id) {
  return request({
    url: `/admin/integralGood/${id}`,
    method: "get",
  });
}

/**新增积分商品 */
export function integralGoodAdd(data) {
  return request({
    url: "/admin/integralGood",
    method: "post",
    data,
  });
}

/**修改 积分 商品 */
export function integralGoodEdit(data) {
  return request({
    url: "/admin/integralGood",
    method: "put",
    data,
  });
}

/**删除 积分 商品 */
export function integralGoodDelete(ids) {
  return request({
    url: `/admin/integralGood/${ids}`,
    method: "delete",
  });
}
